package com.insane.start.common.config;

import com.insane.start.common.exception.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Joe
 * createTime 2020/06/10 10:01
 */
@Configuration
public class CommonAutoConfiguration {

    @Bean
    public GlobalExceptionHandler baseExceptionHandler(){
        return new GlobalExceptionHandler();
    }

}
